package com.service.kaptcha.mapper;

import com.service.kaptcha.model.SysPicCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPicCodeMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysPicCode record);

    int insertSelective(SysPicCode record);

    SysPicCode selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysPicCode record);

    int updateByPrimaryKey(SysPicCode record);

    /**
     * 通过ip查询
     * @param addressIp
     * @return
     */
    List<SysPicCode> findByAddressIp(@Param("addressIp") String addressIp);

    /**
     * 通过uuid查找
     * @param uuid
     * @return
     */
    SysPicCode findByUuid(@Param("uuid") String uuid);
}